define(['cookie'],function(cookie){
	return {
		judeg : function(){
			var sure = document.querySelector('.sure');
			var c_user = document.querySelector('#phone');
            var c_pass = document.querySelector('#pass');
            
             cookie.setCookie(c_user,c_user.value);
             cookie.setCookie(c_pass,c_pass.value);

              sure.onclick = function(){
		       	if(c_user.value == '' || c_pass.value == ''){
		       		console.log('登陆失败。请输入正确的手机号和验证码')
		       	}else{
		       		cookie. getCookie(c_user)
		       		console.log(c_user);
		       		cookie. getCookie(c_pass);
		       		
		       		console.log('登陆成功')
		       	}
		       }
		}
	}
})